import request from '@/utils/request'
export const login = (params: object) => {
    return request({
        url: '/dev/login',
        method: 'post',
        data: params
    })
};
// 获取用户信息
export const getUserInfo = (params: object) => {
    return request({
        url: '/dev/userInfo',
        method: 'get',
        params
    })
};

// 菜单
export const menuData = (params: object) => {
    return request({
        url: '/dev/menus',
        method: 'get',
        params
    })
}

// 组织机构树
export const getOrgData = (params?: object) => {
    return request({
        url: '/dev/orgData',
        method: 'get',
        params
    })
}
export const getTable = (params?: object) => {
    return request({
        url: '/dev/table',
        method: 'get',
        params
    })
}